#!/bin/bash
#get this script real directory
SOURCE="$0"
while [ -h "$SOURCE"  ]; do # resolve $SOURCE until the file is no longer a symlink
    this_script_dir="$( cd -P "$( dirname "$SOURCE"  )" && pwd  )"
    SOURCE="$(readlink "$SOURCE")"
    # if $SOURCE was a relative symlink, 
    #we need to resolve it relative to the path 
    #where the symlink file was located
    [[ $SOURCE != /*  ]] && SOURCE="$this_script_dir/$SOURCE"
done
this_script_dir="$( cd -P "$( dirname "$SOURCE"  )" && pwd  )"


env_file=$this_script_dir/../shell/nat_type_checker/service/env.sh
source $env_file

set_env $this_script_dir/..

echo "-- info, p2pcpp_home is:$p2pcpp_home"

cd $this_script_dir


p2pcpp -t suite_checker/case_nat_type  

